package com.financing.wap.common;

import com.financing.wap.util.PropertiesUtils;


public class CommonConstantUtil {
	// oss address
	public static final String OSS_PATH="http://sfacdn.oss-cn-hangzhou.aliyuncs.com/";
	// localhost address
	public static final String LOCAL_PATH="http://www.superfa.cn/";
	//weixin article url
	public static final String MPWX_PATH="http://mp.weixin.qq.com";
	/**
	 * 通用字段
	 */
	public static class CommonStatus{
		
		/**
		 * 删除标示，1：正常，
		 */
		public static final String DELETE_TAG_NORMAL = "1";
		/**
		 * 删除标示，2:删除
		 */
		public static final String DELETE_TAG_DELETE = "2";
		
		/**
		 * 开关，0：关
		 */
		public static final String SWITCH_CLOSE = "0";
		/**
		 * 开关，1:开
		 */
		public static final String SWITCH_OPEN = "1";
		
		/**
		 * 静默授权-session openid
		 */
		public static final String SESSION_OPENID = "openId";
		
		/**
		 * 用户同意授权-session UNIONID
		 */
		public static final String SESSION_UNIONID = "unionId";
		
		/***
		 * 消息待推送
		 */
		public static final String WECHAT_SEND_STATUS_1 = "1";
		/***
		 * 消息  推送队列中
		 */
		public static final String WECHAT_SEND_STATUS_2 = "2";
		/***
		 * 消息  推送成功
		 */
		public static final String WECHAT_SEND_STATUS_3 = "3";
		/***
		 * 消息 推送失败
		 */
		public static final String WECHAT_SEND_STATUS_4 = "4";
		
		public static final String BASE_DOMAIN=PropertiesUtils.getValue("base_domain");

		public static final String baseAuthPath="http://"+BASE_DOMAIN+"/derivativeSupport/wxapi/weixin/wxAuth?redirect_url=";
		
		//访客数据  页面
		public static final  String visitPage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fvisitor.html";
		//获客方式页面
		public static final  String articlePage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2findex.html";
		//设置名片页面
		public static final  String settingPage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fbCard.html";
		//文章详情地址
		public static final  String articleDetailPage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fdetail.html%3fcode={0}%26userOpenid={1}";
		//添加文章静态描述页面
		public static final  String articleCreatePage="http://"+BASE_DOMAIN+"/page/create.html";
		//通知频率设置
		public static final  String noticeSetting=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fnotice.html";
		//个人中心地址
		public static final  String pCenter=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fpCenter.html";
		//获客海报
		public static final  String posterPage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2fposter.html";
		//会员规则
		public static final  String rulePage=baseAuthPath+"http%3a%2f%2f"+BASE_DOMAIN+"%2fpage%2frule.html";
	
		
		/***
		 * 支付状态  待支付
		 */
		public static final String PAY_STATUS_1 = "1";
		/***
		 * 支付状态  支付成功
		 */
		public static final String PAY_STATUS_2 = "2";
		/***
		 * 支付状态  支付失败
		 */
		public static final String PAY_STATUS_3 = "3";
		
		
		/***
		 * 提现状态  提现中
		 */
		public static final String WITHDRAW_STATUS_1 = "1";
		/***
		 * 提现状态  提现成功
		 */
		public static final String WITHDRAW_STATUS_2 = "2";
		/***
		 * 提现状态  提现失败
		 */
		public static final String WITHDRAW_STATUS_3 = "3";
		
		/***
		 * 兑换类型  1 现金
		 */
		public static final String WITHDRAW_TYPE_1 = "1";
		/***
		 * 兑换类型  2积分
		 */
		public static final String WITHDRAW_TYPE_2 = "2";
	
	}
	/**
	 * 用户表  wx_user_info
	 */
	public class UserInfoStatus{
		
		/**
		 * 是否已关注公众号 1是 
		 */
		public static final String FLAG_CONCERN_IS = "1";
		/**
		 * 是否已关注公众号  2否
		 */
		public static final String FLAG_CONCERN_NO = "0";
		
		/**
		 * 1、 立即提醒
		 */
		public static final String MESSAGE_SEND_SETTING_1 = "1";
		/**
		 * 2、 15分钟提醒
		 */
		public static final String MESSAGE_SEND_SETTING_2 = "2";
		/**
		 * 3、 1小时提醒
		 */
		public static final String MESSAGE_SEND_SETTING_3 = "3";
		/**
		 * 4、3小时提醒
		 */
		public static final String MESSAGE_SEND_SETTING_4 = "4";
		/**
		 * 5、关闭提醒
		 */
		public static final String MESSAGE_SEND_SETTING_5 = "5";
		
		/**
		 * 夜间勿扰  1是  ==   对应   == 夜间提醒2否
		 */
		public static final String MESSAGE_SEND_Night_1 = "2";
		/**
		 * 夜间勿扰 2否
		 */
		public static final String MESSAGE_SEND_Night_2 = "1";
		/**
		 * 每日数据推送 1是
		 */
		public static final String MESSAGE_SEND_DATA_1 = "1";
		/**
		 * 每日数据推送  2否
		 */
		public static final String MESSAGE_SEND_DATA_2 = "2";
		
	}
}
